Encrypt string.
Encrypts the provided input string and returns the encrypted value.
Headers
| Header | Value |
|---|---|
user_id | Login username (email) |
api_key | API key of the user for authentication |
Content-Type | application/json |
Accept | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accelqLoginUrl | string | Yes | The AccelQ login URL for API access. |
tenantCode | string | Yes | Tenant code for identifying the organization. |
projectCode | string | Yes | Project Code found under Auth properties of ACCELQ User Profile |
user_id | string | Yes | Login username (email) |
api_key | string | Yes | API key of the user for authentication |
Request Body
json
"Input string"
Responses
200 - Successful response with encrypted string.
json
"3kXu75r/kx3bCzjSVHsvcw=="
400 - Bad Request. Validation errors occurred.
json
{
"error": "Input string is required."
}
403 - Forbidden - User does not have permission to encrypt string.
json
{
"error": "User do not have authorization to access this feature."
}
cURL Command Builder
URL Parameters
Headers
Request Sample (cURL)
curl -X GET "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/res/encrypt" \
-H "user_id: ${{user_id}}" \
-H "api_key: ${{api_key}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '"Input string"'